import request from '../utils/request'

export const apiLogin = (data) => {
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
}

export const apigetUserInfo = () => {
    return request({
        url: '/api/getUserInfo',
    })
}

//  获取用户列表的接口
export const apigetUserList = () => {
    return request({
        url: '/api/getUserList'
    })
}

// 修改权限
export const apiEditRule = (data) => {
    return request({
        url: '/api/editRule',
        method: 'post',
        data
    })
}